package com.yuandian.api.management.feign;

import com.yuandian.api.management.entity.ConfReturnCode;
import com.yuandian.bpm.common.core.constant.SecurityConstants;
import com.yuandian.bpm.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
 * 说明：远程调用选项接口服务
 * @Author zfsn
 * @Date 2023/3/14 16:06
 */
@FeignClient(contextId = "RemoteReturnCodeService", value = "bpm-management")
public interface RemoteReturnCodeService {

	/**
	 * 获取返回码信息
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
	@PostMapping("/returnCode/getCodeDetail")
	R<List<ConfReturnCode>> getCodeDetail(ConfReturnCode confReturnCode);
	@PostMapping("/innerInterface/getCodeDetail")
	R<List<ConfReturnCode>> getCodeDetail(ConfReturnCode confReturnCode, @RequestHeader(SecurityConstants.FROM) String from);
}
